﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="AddNewBook.aspx.vb" Inherits="Testing.AddNewBook" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
        }
        .style2
        {
            width: 1px;
        }
        .style3
        {
            width: 223px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
                    <asp:Label ID="lbl_error" runat="server" Text=""></asp:Label>
    <fieldset>
        <legend>Enter New Book Details</legend>
        <table style="width: 100%;">
            <tr>
                <td class="style1">
                    &nbsp;
                    Name</td>
                <td class="style2">
                    :</td>
                <td class="style3">
                    &nbsp;
                    <asp:TextBox ID="txt_BName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txt_BName" ErrorMessage="Please enter Book name" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                </td>
                <td rowspan="5" valign="top">
                    <asp:TextBox ID="txt_BDescription" runat="server" Height="135px" 
                        TextMode="MultiLine" Width="529px" style="margin-left: 0px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;
                    Author</td>
                <td class="style2">
                    :</td>
                <td class="style3">
                    &nbsp;
                    <asp:TextBox ID="txt_BAuthor" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txt_BAuthor" ErrorMessage="Please enter Author name" 
                        ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;
                    ISBN</td>
                <td class="style2">
                    :</td>
                <td class="style3">
                    &nbsp;
                    <asp:TextBox ID="txt_B_ISBN" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txt_B_ISBN" ErrorMessage="Please enter ISBN Name" 
                        ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;
                    Price</td>
                <td class="style2">
                    :</td>
                <td class="style3">
                    &nbsp;
                    <asp:TextBox ID="txt_BPrice" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txt_BPrice" ErrorMessage="Please enter enter valid price" 
                        ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="txt_BPrice" OnServerValidate="PriceValid"></asp:CustomValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;Cover Picture&nbsp;</td>
                <td class="style2">
                    :</td>
                <td class="style3">
                    &nbsp;
                    <asp:FileUpload ID="FileUpload_Bpicture" runat="server" />
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1" align="center" colspan="4">
                    <asp:Button ID="btn_Add" runat="server" Text="ADD" Width="63px" />
                </td>
            </tr>
        </table>
    
    
    </fieldset>
</asp:Content>
